<script type="text/javascript" src="/js/admin/visitor.js"> </script>
<table>
      <thead>
        <tr>
          <th colspan="6">
            Visitor Manger 
          </th>
        </tr>
      </thead>

      <tbody >
        <tr>
          <th style="width:10%">Index</th>
          <th style="width:20%">IP</th>
          <th style="width:20%">OS</th>
          <th style="width:15">Browser</th>
          <th style="width:20%">Time</th>
          <th style="width:15%">Operator</th>
        </tr>
        
        <#list visitors as vis>
			<tr>
	          <td style="width:10%">${vis_index+1+(page-1)*15}</td>
	          <td style="width:20%">${vis.ip}</td>
	          <td style="width:20%">${vis.os}</td>
	          <td style="width:15">${vis.browser}</td>
	          <td style="width:20%">${vis.createdTime?string("yyyy-MM-dd HH:mm:ss")}</td>
	          <td style="width:15%">
	          <button class="delete" onclick="delVisitor('${vis.ip}','${vis.id}')" >删除</button>
	          </td>
	        </tr>	
        </#list>

		</tbody>

    </table>
  <br />

<table width="100%">
	<tbody>
	<tr>
        <th id="hdrPlus" class="small" align="right">
        	<#if (page-1>0)>
        	<button onclick="pre('${page-1}')">上一页</button>
        	</#if>
        	&nbsp共${visSize}条&nbsp&nbsp
        	<#if ((page)<((visSize/15)?ceiling))>
        	<button onclick="next('${page+1}')">下一页</button>
        	</#if>
        	
        </th>
    </tr>
	</tbody>
</table>
